package com.mfp.java.testYou.db.model;

import java.io.Serializable;

public class Entity implements Serializable {

	private static final long serialVersionUID = -2522829960469175057L;

	private int id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof Entity) {
			Entity e = (Entity) o;
			return e.id == this.id;
		} else {
			return false;
		}
	}

}
